from django.db import models
from users.models import User
from meiduo_mall33.utils.models import BaseModel

class OAuthQQUser(BaseModel):
    # class OAuthQQUser(models.Model):
    user = models.ForeignKey(User)
    openid = models.CharField(max_length=50)

    # # 自动设置为添加时间
    # create_time = models.DateTimeField(auto_now_add=True)
    # #自动设置为修改时间
    # update_time = models.DateTimeField(auto_now=True)
    class Meta:
        db_table = 'tb_oauth_qq'
